package com.example.blog.service.impl;

import com.example.blog.pojo.user;
import com.example.blog.dao.userRepository;
import com.example.blog.service.userService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class userServiceImpl implements userService {

    @Autowired
    private userRepository userRepository;

    @Override
    public user cheekUser(String userName, String password) {
        user user = userRepository.findByUsernameAndPassword(userName,password);
        return user;
    }
}
